<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="css/swiper.min.css" />
    <link rel="stylesheet" type="text/css" href="css/mui.min.css" />
    <link rel="stylesheet" type="text/css" href="css/mui.min.css">
    <script type="text/javascript" src="js/flexible.js"></script>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/style.css">

    <style>
        .login-form {
            width: 100%;
        }

        .login-form .login-input {
            margin: 0 auto;
        }

        .login-form .login_button {
            width:10rem;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <div class="fjx"></div>
    <form class="login-form">
        <div class="login-input">
            <input type="text" placeholder="输入账户" name="">
        </div>
        <div class="login-input">
            <input type="password" placeholder="请输入6~18位密码" name="">
        </div>
        <div class="login_button">
            <input type="button" style="height:1.133rem;" onclick="login()" value="登录" class="content-but" />
        </div>

    </form>
    <div class="login-get">
        <a class="fl" href="register.html">立即注册</a>
        <!--<a class="fr" href="">忘记密码</a>-->
        <div class="clear"></div>
    </div>
<script>
    function login() {
        let json = {
            userName:"李松红",
            img:'images/head.jpg'
        };
        sessionStorage.setItem("user",JSON.stringify(json));
        window.location.href  = "index.html"
    }
</script>
</body>

</html>